﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using System.Data;
using System.Data.SqlClient;

namespace DAL
{
  public  class MoneyDAL
    {
      public static bool ChonggzhiMoney(int AdministratorID,decimal Yuangongmoney)
      {
          string sql =string.Format( "update Yuangong set Yuangongmoney=Yuangongmoney+{0} where AdministratorID={1}",Yuangongmoney,AdministratorID);
          return DBHelper.Instance().ExcuteSql(sql);
      }
    }
}
